package com.liu.config;

import com.liu.interceptor.TokenIntercrptor;
import feign.Logger;
import feign.Request;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.concurrent.TimeUnit;

@Configuration
public class FeignConfig {

    @Bean
    public Logger.Level feignLogLevel(){
        return Logger.Level.FULL;
    }

    @Bean
    public TokenIntercrptor tokenIntercrptor(){
        return new TokenIntercrptor();
    }

/*    @Bean
    public Request.Options options(){
        return new Request.Options(1, TimeUnit.MILLISECONDS,10,TimeUnit.MILLISECONDS,true);
    }*/
}
